-
Notifications
You must be signed in to change notification settings - Fork 3.9k
[types] Introduce new payload for encrypted mempool #17919
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
ibalajiarun
wants to merge
1
commit into
main
Choose a base branch
from
balaji/enc-pool-1
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+199
−4
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fe41d78 to
e2010c5
Compare
Contributor
Author
e2010c5 to
faec2e8
Compare
9f13a91 to
d18f0bf
Compare
d18f0bf to
d796437
Compare
d796437 to
c01522f
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This was referenced Nov 11, 2025
c01522f to
23bd230
Compare
This comment has been minimized.
This comment has been minimized.
Contributor
✅ Forge suite
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.

Description
This PR introduces
EncryptedPayloadvariant toTransactionPayload. Currently, the PR disallows any processing of the payload itself and rejects transactions submitted as such. This will be implemented in the future.The purpose is to allow encrypted transactions submission. The first version of the payload is an enum with three states:
Encrypted,DecryptedandFailedDecryption. The user is expected to submit the payload inEncryptedstate and the validators agree to move the payload to eitherDecryptedorFailedDecryptionstate.Note
Introduces
TransactionPayload::EncryptedPayloadwith plumbing and rejects encrypted txns across API, VM validation/simulation, consensus quorum store, converters, and filters.transaction/encrypted_payload.rsand new variantTransactionPayload::EncryptedPayloadwith V1 states and helpers (executable[_ref],extra_config,is_encrypted_variant,payload_ref).use_caseand payload/executable accessors to handle encrypted payloads.api/src/transactions.rs.api/types/src/convert.rs) bails on encrypted payloads.FEATURE_UNDER_GATING) and preserves existing script arg gating.EncryptedPayload::V1when available; otherwise matchers return false.Written by Cursor Bugbot for commit 23bd230. This will update automatically on new commits. Configure here.